package com.chaodev.base.dao;

import com.chaodev.base.dto.VolunteerWorkRecordDto;
import com.chaodev.base.model.VolunteerWorkRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface VolunteerWorkRecordDao {

    /**
     * 新增工作服务情况记录
     * @param volunteerWorkRecord
     * @return
     */
    int insertVolunteerWorkRecord(VolunteerWorkRecord volunteerWorkRecord);

    /**
     * 修改工作服务情况记录
     * @param volunteerWorkRecord
     * @return
     */
    int updateVolunteerWorkRecord(VolunteerWorkRecord volunteerWorkRecord);

    /**
     * 删除工作服务情况记录
     * @param id
     * @return
     */
    int deleteVolunteerWorkRecord(@Param(value = "id") String id);

    /**
     * 查询工作服务情况记录
     * @param volunteerWorkRecordDto
     * @return
     */
    List<VolunteerWorkRecord> selectVolunteerWorkRecordList(VolunteerWorkRecordDto volunteerWorkRecordDto);
}
